<? #//v.3.3.0
$NOW = date("YmdHis",mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y")));
#///////////////////////////////////////////////////////
#// COPYRIGHT 2007 Phpauction.org ALL RIGHTS RESERVED //
#///////////////////////////////////////////////////////
        
         if(isset($_COOKIE['USERLANGUAGE'])) {
  $USERLANG = $_COOKIE['USERLANGUAGE'];
} else {
  $USERLANG = $SETTINGS['defaultlanguage'];
}


?>




   <?php /*
 
 <!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!----------- The Following Varaibles Are Available For Use In The HEADER ------------->
<!-- The $variable name must be not changed in order for the item show in the browser -------->
<!-- You can place these variables between <DIV> </DIV> or <SPAN> </SPAN> tags for CSS markup --------->
<!-- NOTE: To use a $variable it needs to be placed in PHP < ? ? > brackets as you can see below ------>

                                      <!--
Categories List 
----------------------------------------- 
$categories_select        Setup In Admin
$categories_list          Setup In Admin   
$categories_graphic_select_menu  Setup In Admin
                       
Current Time 
----------------------------------------      
$current_date_time        Setup In Admin
                                          
User Counter
----------------------------------------        
$users_online_counter 
                                         
Page Info 
----------------------------------------                                 
$page_title               Setup In Admin   
$logo                     Setup In Admin       
$meta_tag_description     Setup In Admin       
$meta_tag_keywords        Setup In Admin              
                                       
Login Form
----------------------------------------                                
$header_login_form_complete   
$header_login_form_start  
$header_login_form_username_label     
$header_login_form_username_input    
$header_login_form_password_label    
$header_login_form_password_input    
$header_login_form_remember_me_checkbox_and_label  
$header_login_form_remember_me_hidden     
$header_login_form_submit_button         
$header_login_form_forgot_password_link    
$header_login_form_end     
                              
Search Form 
----------------------------------------                  
$search_form     
                             
Links
----------------------------------------                       
$home_link      
$logout_link           
$register_link           
$user_login_link    
$forgot_password_link  
$search_link          
$browse_categories_link 
$buy_bids_link  
$about_us_link  
$contact_us_link 
$help_link      
$feedback_link  
$live_auction_link 
$upcoming_auction_link  
$send_to_a_friend_link  
$privacy_policy_link 
$terms_and_conditions_link 
$how_it_works_link
$news_link
$winners_testimonials_link
 
** These links should only be 
** shown to logged in users.

$edit_profile_link 
$item_watch_link  
$user_bids_link  
$user_wins_link  
$user_payments_link 

Plain Text Info                         
-----------------------------------------
$user_email		             
$user_real_name            
$user_name                
$user_bids_remaining      
                     
     -->    
<!---------------- End ITEM Display Variables ------------------->      


 */
 
 ?>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<!-- Title -->

<title> <?php print $page_title  ; ?> <?php print $title_for_header; ?></title>


  <!-- Meta Tags -->
<?php print $meta_tag_description ; ?>

<?php print $meta_tag_keywords ; ?>


<? 

if ( $USERLANG == EN ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\" >   ";

 }
 
 if ( $USERLANG == CN ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\" >   ";

 }

 if ( $USERLANG == ES ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >   ";;

 }

  if ( $USERLANG == FR ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >   ";

 }
 
 if ( $USERLANG == IT ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >   ";

 }
 
   if ( $USERLANG == DE ) {

echo "  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" >   ";

 }
 
 if ( $USERLANG == PG ) {

 echo "   <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-'8\" >  ";

 }

?>




<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">



<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- THIS IS THE CSS STYLESHEET FOR NON INTERNET EXPLORER BROWSER -->
*/ ?>



<![if !IE]>
<link rel="stylesheet" type="text/css" href="global_not_ie.css" />
<link rel="stylesheet" type="text/css" href="screen.css" />
<![endif]>


<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- THIS IS THE CSS STYLESHEET FOR INTERNET EXPLORER BROWSER -->
*/ ?>

       <!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="global_ie6.css" />
<link rel="stylesheet" type="text/css" href="screen.css" />
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="global_ie7.css" />
<link rel="stylesheet" type="text/css" href="screen.css" />
<![endif]-->

<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="global_ie8.css" />
<link rel="stylesheet" type="text/css" href="screen.css" />
<![endif]-->

<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="global_ie9.css" />
<link rel="stylesheet" type="text/css" href="screen.css" />
<![endif]-->

   <? print $google_analytics1; ?>




<?php /*
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!--------READ READ READ READ READ READ READ READ-------->
<!-- Do Not Erase JavaScript Links Below or JavaScript Code  -->

*/ ?>



<script type="text/javascript" src="js/tinybox.js" language="Javascript"></script>
<script type="text/javascript" src="js/jquery.js" language="Javascript"></script>
<script type="text/javascript" src="js/ajax_global.js" language="Javascript"></script>
<script type="text/javascript" src="js/SpryEffects.js" language="Javascript"></script>
<script type="text/javascript" src="js/global_utilities.js" language="Javascript"></script>
<script type="text/javascript" src="js/easySlider1.7.js" language="Javascript"></script>
 
      <? if( $activated == 1 ) { ?>
 <script type="text/javascript">
	$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true,
		continuous: true, 
		pause: <? print $time; ?>
		
	});
});
    </script>
           <? } ?>


       
<script type="text/javascript">

    
           function siteLoad(){
           
      $("#caja").slideDown(0)     
           
           
           
           
           }

$(function()
{





$("#mostrar").click(function(event) {
event.preventDefault();
$("#caja").slideToggle();
});
  /*
$("#caja a").click(function(event) {
event.preventDefault();
$("#caja").slideUp();
});


*/

});
</script>


<script type="text/javascript" language="Javascript">


    <?php print   $live_and_upcoming_auction_javascript ; ?>


</script>
</head>

  <?php /*
      <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--  DO CHANGE OR DELETE < ? print $body_tag_onload; ? > BELOW --> */

?>


<?php print $body_tag_onload; ?>


<DIV class=PAGE_WRAPPER >

<div class=ADDTHIS_HEADER_BOX>

         <!-- AddThis Bookmark Button BEGIN -->

<a  href="http://www.addthis.com/bookmark.php" onmouseover="addthis_url   = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"> <img src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="AddThis Social Bookmark Button"  /></a> <script type="text/javascript"></script><script type="text/javascript" src="http://s9.addthis.com/js/widget.php?v=10"></script>  
<!-- AddThis Bookmark Button END -->    


     </div>

<div class=FACEBOOK_HEADER_BOX>      
           
               <?  if ( $facebook_url1 ) { ?>  
                <? print $facebook_url1; ?>
                          <?  } ?>
           
           
 </div>          
           
 <div class=TWITTER_HEADER_BOX>      
           
                    <?  if ( $twitter_url1 ) { ?>  
                <? print $twitter_url1; ?>
                          <?  } ?>
</div>            
           
           
        
    
    
    
    
    
    <div class=OPEN_CLOSE_HEADER_BOX > 
               <a href="#" id="mostrar"><img src="images/open_close.gif" ></a>
    
    
      </div>
      
      
      
<div id="caja">


  <DIV class=HEADER_BOX_ON >   <!-- To Turn Off Header Change The "class" to "HEADER_BOX_OFF" -->
  <DIV class=LOGO_BOX >

     <!--     <A href=index.php>
 <img src="images/logo.jpg" border=0> 

      </A>  -->
  
            <?
        if($SETTINGS['logo']) {
        ?>
          <a href="<?=$SETTINGS['siteurl']?>index.php?"><img src="<?=$SETTINGS['siteurl'].phpa_uploaded(false).$SETTINGS['logo'];?>" border="0" alt="<?=$SETTINGS['sitename']?>"/></a> 
          <?
        } else {
     print $logo;
        }
        ?>
        
</DIV> <!-- END LOGO BOX -->
 
<DIV class=ANNOUNCEMENT_BOX >
  
  
<? print $header_announcement1; ?>
  
</DIV> <!-- END ANNOUNCEMENT BOX -->
  
  
      <?php
 /*
      <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!--------READ READ READ READ READ READ READ READ-------->
   <!-- CHECK TO SEE IF LOGGED IN ---------------------------> */
        
        if($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in */
	  	?>
    <DIV class=LOGIN_BOX >
    
       <DIV class=LOGIN_1 style="width:330px; text-align:center; font-size:14px; color:#fff;" >
        
      <?php
  
$logged_in_header = $HELLO;
$logged_in_header .= "&nbsp;";
$logged_in_header .= $_SESSION['PHPAUCTION_LOGGED_IN_USERNAME'];
$logged_in_header .= "&nbsp;";
$logged_in_header .= "<a style=\"color:#fff;\" href=logout.php >[ Logout ]</a>"; 
  echo $logged_in_header;
  
      ?>
         </DIV>
       
          
 
 </DIV>
 
        
          
 
 
 
  <?php
        } else {
         
          	/* user not logged in, give link to register or login */
		?>

<DIV class=LOGIN_BOX >
            <form name="user_login1" action="user_login.php?" method=POST>

   
   <DIV class=USER_LOGIN_USERNAME >
   
   
     <INPUT TYPE=text NAME=username class=USER_LOGIN_PASSWORD_INPUT_BOX VALUE="<? print $MSG_003; ?>" onfocus="if(this.value==this.defaultValue){this.value='';}" onblur="if(this.value==''){this.value=this.defaultValue;}">
    

           
     <? //<INPUT TYPE=text NAME=username class=USER_LOGIN_PASSWORD_INPUT_BOX value="Username">    ?>
     
    </DIV> <!-- END USER LOGIN USERNAME -->
    
    <DIV class=USER_LOGIN_PASSWORD >
   
   <INPUT TYPE=password NAME=password class=USER_LOGIN_PASSWORD_INPUT_BOX VALUE="Password" onfocus="if(this.value==this.defaultValue){this.value='';}" onblur="if(this.value==''){this.value=this.defaultValue;}">
    
   <? // <INPUT TYPE=text NAME=password class=USER_LOGIN_PASSWORD_INPUT_BOX value="Password"> ?>
    
    
    </DIV> <!-- END USER LOGIN PASSWORD -->
  
  <DIV class=USER_LOGIN_BUTTON >
    <input type=hidden name=rememberme value=1 />
 <input type="hidden" name="action" value="login" />

       <INPUT TYPE="image" SRC="images/login_button<? print $USERLANG; ?>.jpg" BORDER="0" ALT="Login" value=submit >
    
    
    </DIV> <!-- END LOGIN BUTTON -->
    
   <DIV class=FORGOT_PASSWORD >
  
  <A href=forgotpasswd.php ><img src=images/forgot_password<? print $USERLANG; ?>.jpg border=0 ></a>
  
   </DIV> <!-- END FORGOT PASSWORD -->
  
                    </form>
  </DIV> <!-- END LOGIN BOX -->
  
  
  <? } ?>
  
  
  
    <DIV class=HELP_BOX  >
  
<? print $helpdesk_info1; ?>
   
 </CENTER>  
   <?ShowFlags()?>
          </CENTER>
   
   
    </DIV> <!-- END HELP BOX -->
    
  
    
    </DIV> <!-- END HEADER BOX -->


    </DIV> <!-- END OPEN CLOSE "caja" BOX -->







